angular.module('starter.directives', [])

 .directive('centerBtn', function () {
        return {
            link: function (scope, element, attrs) {
                var height = document.documentElement.clientHeight;
                var top = parseInt(height/2 -50);
                angular.element(element).css({top: top+ 'px'})
            }
        };
    })

;